package mn.idax.exchange.otc.service.impl;

import mn.idax.exchange.otc.entity.OTCArbitration;
import mn.idax.exchange.otc.mapper.OTCArbitrationMapper;
import mn.idax.exchange.otc.service.OTCArbitrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: jack_huang
 * @Date: 2019/1/14 13:37
 */
@Service
public class OTCArbitrationServiceImpl implements OTCArbitrationService {

    @Autowired
    private OTCArbitrationMapper otcArbitrationMapper;

    @Override
    public OTCArbitration queryArbitrationByUniqueKey(String chatRoom) {
        return otcArbitrationMapper.queryArbitrationByUniqueKey(chatRoom);
    }

    @Override
    public int updateCustomerJoined(Integer orderid) {
        return otcArbitrationMapper.updateCustomerJoined(orderid);
    }
}
